package user;

import user.User;

import java.util.Date;

public class Reception extends User {

    public Reception() {
        super();
        setUserType("前台"); // 固定用户类型
    }

    public Reception(int id, String userName, String password, String userTelephone,
                     Date registerTime, boolean needChangePassword) {
        super(id, userName, password, "前台", userTelephone, registerTime, needChangePassword);
    }

    // 重写输入方法，固定用户类型
    @Override
    public void inputUserInfo() {
        System.out.println("请输入前台ID:");
        setId(scanner.nextInt());
        scanner.nextLine();

        System.out.println("请输入前台用户名:");
        setUserName(scanner.nextLine());

        System.out.println("请输入密码:");
        setPassword(scanner.nextLine());

        System.out.println("请输入前台电话:");
        setUserTelephone(scanner.nextLine());

        setRegisterTime(new Date());
    }
}